import request from '../utils/request';
import { createTheURL } from '../utils/utils';
import { API } from '../config/api';


// 商品类别列表
export async function getInternalTradeTypeList(params) {
  return request(createTheURL(API.internaltradetypeAPI, 'list'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 商品信息类别详情列表
export async function getInternalTradeTypeDetailList(params) {
  return request(createTheURL(API.internaltradeAPI, 'list'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
